﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Security.Cryptography;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;

namespace mb
{

    public class PressedEffect : RoutingEffect
    {
        public PressedEffect() : base("com.jj.PressedEffect") { }

        public static readonly BindableProperty CommandProperty = BindableProperty.CreateAttached("Command", typeof(ICommand), typeof(PressedEffect), (object) null);
        public static ICommand GetCommand(BindableObject view) => (ICommand) view.GetValue(CommandProperty);
        public static void SetCommand(BindableObject view, ICommand value) { view.SetValue(CommandProperty, value); }

        public static readonly BindableProperty LongPressCommandProperty = BindableProperty.CreateAttached("LongPressCommand", typeof(ICommand), typeof(PressedEffect), (object) null);
        public static ICommand GetLongPressCommand(BindableObject view) => (ICommand) view.GetValue(LongPressCommandProperty);
        public static void SetLongPressCommand(BindableObject view, ICommand value) { view.SetValue(LongPressCommandProperty, value); }

    }
}